﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Neeko.XNA.UI
{
    public class Sprite
    {
        public Texture2D Texture { get; set; }
        public Rectangle SourceRectangle { get; set; }

        public Color Color { get; set; }

        public Sprite(Texture2D texture)
        {
            if (texture == null)
                throw new ArgumentException("Parameter texture cannot be null");

            this.Texture = texture;
            this.SourceRectangle = new Rectangle(0, 0, texture.Width, texture.Height);
            this.Color = Color.White;
        }
    }
}
